package FolhaGenerica;

public abstract class Mensalista extends Funcionario {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private double salarioMensal;

	public Mensalista(String nome, int codigo, double salarioMensal)
			throws Exception {
		super(nome, codigo);
		if (salarioMensal <= 0)
			throw new Exception("salario Mensal deve ser maior que zero.");
		this.salarioMensal = salarioMensal;
	}

	protected double salario() {
		return salarioMensal;
	}

	protected abstract double comissao();

}
